/*******************************************************************************
 * Copyright (c) 2002 Boris Pruessmann and others. All rights reserved. This
 * program and the accompanying materials are made available under the terms of
 * the Common Public License v0.5 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors: Boris Pruessmann - Initial implementation.
 ******************************************************************************/
package net.sourceforge.perforce.ui.wizards;

import net.sourceforge.perforce.ui.internal.Policy;

import org.eclipse.jface.dialogs.IDialogPage;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;

/**
 * @version $Revision: 488 $
 * @author <a href="mailto:bpruessmann@users.sourceforge.net">Boris
 *         Pruessmann</a>
 */
class NoServerWizardPage extends PerforceWizardPage {

  /** Constructor for NoServerWizardPage. */
  public NoServerWizardPage() {
    super("NoServerWizardPage", //$NON-NLS-1$
        Policy.bind("NoServerWizardPage.title"), //$NON-NLS-1$
        null);
  }

  /** @see IDialogPage#createControl(Composite) */
  public void createControl(Composite parent) {
    Composite composite = createComposite(parent, 1);

    Label l = createCenteredLabel(composite);
    l.setText(Policy.bind("NoServerWizardPage.message")); //$NON-NLS-1$

    GridData data = new GridData(GridData.FILL_BOTH);
    l.setLayoutData(data);

    setControl(composite);
  }
}
